﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<CodeCamp.BL.MemberProfile>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Speakers</h2>
	<% foreach (var speaker in Model)
	{ %>
	<div class="speaker-profile">
		<div class="speaker-photo">
			<%= speaker.Attachment.ShowImage("File", "Image", 80, 104,"/content/no-photo.png")%>
		</div>
		<div class="speaker-name">
			<%= Html.Encode(speaker.FirstName) %><a name="<%= speaker.UserId %>">&nbsp;</a><%= Html.Encode(speaker.LastName) %>
		</div>
		<span class="speaker-bio">
			<p>
				<%= Html.Encode(speaker.Bio) %></p>
		</span>
		<% 
			if (speaker.AllowAnonymizedContact)
			{
		%>
		<%= Html.ActionLink("Contact", "Contact", new { id = speaker.UserId })%>
		<%
			}
		%>
		<% Html.RenderPartial("SpeakerSessions", speaker); %>
	</div>
	<% } %>
</asp:Content>
